package com.yikome.promotion.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.data.annotation.CreatedBy;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "pro_coupon")
public class Coupon extends BaseEntity{
	
	private static final long serialVersionUID = 5169721649566838601L;

	private Long shopId ;  //商城ID
	
	@Column(unique = true)
	private String promotionCode ; 
	
	private String promotionName ;  //活动名称 
	
	private BigDecimal reductionValue ;  //减差值
	
	private String comments ; 
	
	private Date begainTime ; 
	
	private Date endTime ; 
	
	private Integer status ;  //0.已创建; 10.运行中; -10.已下线;
	
    @CreatedBy
    private String createdBy;
}
